package com.example.lee1.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.lee1.dao.HistoryDao;
import com.example.lee1.entity.HistoryEntity;
import com.example.lee1.service.HistoryService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("historyService")
public class HistoryServiceImpl extends ServiceImpl<HistoryDao, HistoryEntity>
    implements HistoryService {

  @Override
  public PageUtils queryPage(Map<String, Object> params) {
    IPage<HistoryEntity> page =
        this.page(new Query<HistoryEntity>().getPage(params), new QueryWrapper<HistoryEntity>());

    return new PageUtils(page);
  }
}
